package ar.com.cooker.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
 * Objeto BO Paso.
 * @author c02536
 *
 */
@Entity
@Table(name = "ck_Step")
public class Step implements Serializable{


	private static final long serialVersionUID = -7650274062456760741L;

	@Id
	@GeneratedValue
	@Column(name = "id_step")
	private Integer id;
	
	@Column(length = 100)
	private String orderStep;
	
	@Column(length = 100)
	private String description;

	@Column(length = 50)
	private String timeStep;
	
	@ManyToOne(targetEntity = Recipe.class)
	@JoinColumn(name = "id_recipe_fk")
	private Recipe recipe;
		
	public Step() {
	}
	
	public Step(String orderStep, String description, String timeStep) {
		this.orderStep = orderStep;
		this.description = description;
		this.timeStep = timeStep;
	}


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOrder() {
		return orderStep;
	}

	public void setOrder(String order) {
		this.orderStep = order;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setTime(String time) {
		this.timeStep = time;
	}

	public String getTime() {
		return timeStep;
	}

	public void setRecipe(Recipe recipe) {
		this.recipe = recipe;
	}

	public Recipe getRecipe() {
		return recipe;
	}
}
